<?php if (!defined('THINK_PATH')) exit();?><div class="col-md-9 common-list" style="display:none">
	<div style="width:100%;height:90px;"></div>
	<div class="panel panel-default" style="margin-top:10px;">
		<div class="panel-heading">
		  <h4 class="panel-title">
			<a class="accordion-toggle data-parent="#accordion">公共版块</a>
			<i class="oa-post pull-right"></i>
		  </h4>
		</div>
		<div id="collapseOne" class="panel-collapse collapse in">
		  <div class="panel-body">

	<!-- Nav tabs -->
	<ul class="nav nav-tabs">
		<li><a href="#alltopic" id="0" data-toggle="tab">所有话题</a></li>
		<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="#<?php echo ($vo["target"]); ?>" id="<?php echo ($vo["category_id"]); ?>" data-toggle="tab"><?php echo ($vo["category_name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
	</ul>

	<!-- Tab panes -->
	<div class="tab-content">
		<div class="tab-pane active" id="alltopic">所有话题</div>
		<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="tab-pane" id="<?php echo ($vo["target"]); ?>"><?php echo ($vo["category_name"]); ?></div><?php endforeach; endif; else: echo "" ;endif; ?>
	</div>

		  </div>
		</div>
	</div>
</div>
<script>
	$(function(){
		$(".oa-post").click(function(){
			$("#topic").modal('show');
		});
	});
</script>